package com.mars.foodserver.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author wq
 * @since 2021-07-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Food implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 菜品名称
     */
    private String name;

    /**
     * 用户ID
     */
    private Integer userId;

    /**
     * 菜品图片
     */
    private String imgUrl;

    /**
     * 菜品描述
     */
    private String description;

    /**
     * 得分
     */
    private Integer score;

    /**
     * 点赞数量
     */
    private Integer likeCount;

    /**
     * 菜品类型ID
     */
    private Integer foodTypeId;

    /**
     * 种类ID
     */
    private Integer foodCategoryId;

    /**
     * 是否首页推荐 0 不推荐 1 推荐
     */
    private Integer isRecommend;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    @TableLogic
    private Integer deleted;

    /**
     * 0 未审核 1 已审核
     */
    private Integer status;


}
